<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>	
<%
String path = request.getContextPath();
String bpath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=9" />
		<meta http-equiv="pragma" content="no-cache" />
		<title>井冈山智慧社区官方网站</title>
   	<script type="text/javascript" src="<%=bpath %>Scripts/jquery/jquery-1.7.1.min.js"></script> 
 	<link rel="stylesheet" type="text/css" href="<%=bpath%>Themes/default/css/responsive-tabs.css"/> 	
 	<script type="text/javascript" src="<%=bpath %>Scripts/jquery/jquery.responsiveTabs.js"></script> 
 	<link rel="stylesheet" type="text/css" href="<%=bpath%>pages/WebSubject/redzt/css/subPage.css"/>
 	
	 <script type="text/javascript" src="<%=bpath%>Scripts/common/asynPage.js"/>
 	<script type="text/javascript" src="<%=bpath %>pages/WebSubject/redzt/js/subPage.js"></script> 
	<script type="text/javascript" src="<%=bpath %>pages/WebSubject/redzt/js/ajaxPage.js"></script> 
	
 	<script type="text/javascript" >
	 	$(function(){	
	 		
	 		loadMenu('${data.subjectTopic.id}');

	 		var sec_topic_bg_image = '${data.subjectTopic.sec_topic_bg_image}';
	 		var src = sec_topic_bg_image =='' ? "../pages/WebSubject/redzt/images/lzys.png" : sec_topic_bg_image;
	 		
	 		$("#sec_bg_Image").attr("src",src);
	 		
	 	});
	 	
	 	function loadMenu(topic_id){
 			$.ajax({  
 				type: "POST",  
 		        url: '../WebSubject/loadSubjectMenus.json',  
 		        data:{  
 		        	topic_id:topic_id,		    	    	  
 			    },  
 			    cache:false,  
 			    dataType:'json',  
 			    success:function(data) { 
 			    	var str="";
 			    	if(data!=null && data.length>0){
 			    		data.forEach(function(e){  
 			    			 str+="<li><a href='../WebSubject/SubMenuPage.htm?id="+e.id+"' class='normal' title='"+e.title+"'>"+e.title+"</a></li>";
 			    		});
 			    	}	
 			    	$(".nav").append(str);
 			    },  
 			     error : function(XMLHttpRequest, textStatus, errorThrown) {  
 			          XMLHttpRequest.status;
 			          XMLHttpRequest.readyState;
 			          textStatus;
 			     }  
 			});
 		}
 	
	</script>
</head>
<body>
	<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">

        <div class="container">
		      <div class="span12">
		          <a class="brand" href="#">
		          	 <img id="sec_bg_Image" src="../pages/WebSubject/redzt/images/lzys.png"/>
		          </a>
	          </div>
         </div>
          
          
          <div class="nav-collapse">
          <div class="container">
            <ul class="nav">
              <li><a href="../WebSubject/subjectMain.htm?id=${data.subjectTopic.id}" class="normal" title="首页">首页</a></li>
             
            </ul>
            </div>
          </div>
        </div>
      </div>
	
</body>
</html>